package io.coderyeah.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author coderyeah
 * @since 2022-11-08
 */
@Data
@TableName("t_kill_activity")
public class KillActivity {

    // 待发布
    public static final Integer KILL_WAIT_PUBLISH = 0;
    // 已发布
    public static final Integer KILL_OK_PUBLISH = 1;
    // 取消发布
    public static final Integer KILL_CANCEL_PUBLISH = 2;
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    @TableField("time_str")
    private String timeStr;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("start_time")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;
    /**
     * 0待发布，1已发布 ，2已取消
     */
    @TableField("publish_status")
    private Integer publishStatus;
    @TableField("publish_time")
    private Date publishTime;
}
